package virtualstock.util;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class GameDetails implements java.io.Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Long gameID;
	private String gameName;
	private Long creator;
	private int maxPlayer;
	private BigDecimal initialBalance;
	private Date startDate;
	private List<Long> playerIDs;
	
	public GameDetails(
			Long gameID,
			String gameName,
			Long creator,
			int maxPlayer,
			BigDecimal initialBalance,
			Date date) {
		this.gameID = gameID;
		this.gameName = gameName;
		this.creator = creator;
		this.maxPlayer = maxPlayer;
		this.initialBalance = initialBalance;
		this.startDate = date;
	}

	public GameDetails(
			String gameName, 
			Long creator, 
			int maxPlayer,
			BigDecimal initialBalance, 
			Date date) {
		this.gameName = gameName;
		this.creator = creator;
		this.maxPlayer = maxPlayer;
		this.initialBalance = initialBalance;
		this.startDate = date;
	}

	public Long getGameID() {
		return gameID;
	}

	public void setGameID(Long gameID) {
		this.gameID = gameID;
	}

	public String getGameName() {
		return gameName;
	}

	public void setGameName(String gameName) {
		this.gameName = gameName;
	}

	public Long getCreator() {
		return creator;
	}

	public void setCreator(Long creator) {
		this.creator = creator;
	}

	public int getMaxPlayer() {
		return maxPlayer;
	}

	public void setMaxPlayer(int maxPlayer) {
		this.maxPlayer = maxPlayer;
	}

	public BigDecimal getInitialBalance() {
		return initialBalance;
	}

	public void setInitialBalance(BigDecimal initialBalance) {
		this.initialBalance = initialBalance;
	}

	public Date getStartDate() {
		return startDate;
	}

	public List<Long> getPlayerIDs() {
		return playerIDs;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	
	public void setPlayerIDs(List<Long> playerIDs) {
		this.playerIDs = playerIDs;
	}
	
	@Override
	public boolean equals(Object obj){
		GameDetails gd = (GameDetails) obj;
		
		if(this.gameID.equals(gd.gameID))
			return true;
		else 
			return false;
	}

}
